package com.chaopei.duotai;

/**
 * @Author Corday 天涯
 * @Date 2022/3/7 11:09
 */
public class Employee extends Cool  {
    private  double salary;
    public Employee(){}

    public Employee(String username, String password, double salary) {
        super(username, password);
        this.salary = salary;
    }

    public Employee(double salary) {
        this.salary = salary;
    }
//    set/get

    public double getSalary() {
        return salary;
    }

    public void setSalary(double salary) {
        this.salary = salary;
    }
//    重写方法

    @Override
    String speak() {
        return "工资:"+this.salary;
    }
}
